package com.cskaoyan.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateUtils {

    private static SimpleDateFormat type1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    private static SimpleDateFormat type2 = new SimpleDateFormat("yyyyMMdd");

    private static SimpleDateFormat type3 = new SimpleDateFormat("yyyy-MM-dd");

    private static SimpleDateFormat activation = type2;

    private DateUtils() {
    }

    public static String getCurrentTimeString() {

        Calendar calendar = Calendar.getInstance();
        Date date = calendar.getTime();
        return activation.format(date);

    }

}
